package com.qsmx.store.app.main.mem;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.widget.GridLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.View;

import com.qsmx.store.app.R;
import com.qsmx.store.app.R2;
import com.qsmx.store.app.main.mem.adapter.MemInfoSpecialResetAdapter;
import com.qsmx.store.core.delegates.AtmosDelegate;

import butterknife.BindView;

public class MemInfoSpecialResetDelegate extends AtmosDelegate {

    private MemInfoSpecialResetAdapter mAdapter;

    @BindView(R2.id.rlv_special_reset)
    RecyclerView rlvSpecialReset = null;

    @Override
    public Object setLayout() {
        return R.layout.delegate_mem_info_special_reset;
    }

    @Override
    public void onBindView(@Nullable Bundle savedInstanceState, View rootView) {

        initRecycler();

    }

    private void initRecycler() {

        GridLayoutManager manager = new GridLayoutManager(getContext(), 2);
        mAdapter = new MemInfoSpecialResetAdapter(getContext());

        rlvSpecialReset.setLayoutManager(manager);
        rlvSpecialReset.setAdapter(mAdapter);

    }
}
